package orxatas.travelme.entity;

import java.util.ArrayList;

/**
 * Grupo
 * Entidad que representa un grupo.
 * */
public class Group {
	private String name;
	private int idOffline;
	private int idOnline;
	private int lastUpdate; 
	private int owner;
	
	private ArrayList<Comment> comments;
	private ArrayList<Integer> places;
	private ArrayList<Integer> users;
	
	/**
	 * Constructor
	 * 
	 * @param id Id del grupo.
	 * @param name Nombre del grupo.
	 * @param owner OWner del grupo.
	 * */
	public Group(int idOffline, String name, int owner){
		
		this.idOffline = idOffline;
		this.name = name;
		this.owner = owner;
	}
	
	

	public ArrayList<Integer> getUsers() {
		return users;
	}

	public void setUsers(ArrayList<Integer> users) {
		this.users = users;
	}

	public int getLastUpdate() {
		return lastUpdate;
	}

	public void setLastUpdate(int lastUpdate) {
		this.lastUpdate = lastUpdate;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}


	public int getIdOffline() {
		return idOffline;
	}

	public void setIdOffline(int idOffline) {
		this.idOffline = idOffline;
	}

	public int getIdOnline() {
		return idOnline;
	}

	public void setIdOnline(int idOnline) {
		this.idOnline = idOnline;
	}

	public int getOwner() {
		return owner;
	}

	public void setOwner(int owner) {
		this.owner = owner;
	}

	public ArrayList<Comment> getComments() {
		return comments;
	}

	public void setComments(ArrayList<Comment> comments) {
		this.comments = comments;
	}

	public ArrayList<Integer> getPlaces() {
		return places;
	}

	public void setPlaces(ArrayList<Integer> places) {
		this.places = places;
	}
}
